<?php
class ApplicationModule_IndexAction extends KvfAction
{
  const UseLayout = true;
  protected $callback;

  public function Validate()
  {
    if($this->_parent->UserLoggedIn())
    {
      $this->callback = "show_app_main";
    }
    else
    {
      $this->callback = "show_user_login";
    }
  }

  public function Display()
  {
    include KVF_MODULES."/application.module/views/index.phtml";
  }
}
?>
